package models

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	Title string `gorm:"type:varchar(30)"`
}

type GoodsText struct {
	gorm.Model
	GoodsId int    `gorm:"type:int"`
	Title   string `gorm:"type:varchar(30)"`
	Price   int    `gorm:"type:int"`
	Text    string `gorm:"type:varchar(150)"`
	Num     int    `gorm:"type:int"`
}

type BuyCar struct {
	gorm.Model
	GoodsId int `gorm:"type:int"`
}
